/*
 * 文件名： TransMsg.java
 * 
 * 工程名称: common-domain
 *
 * Gopay
 *
 * 创建日期： 2017年5月12日
 *
 * Copyright(C) 2017, by www.gopay.com.cn Inc.All rights reserved.
 *
 * 原始作者: 宣广海
 *
 */
package com.gopay.common.domain.bank.wechat.wcpay.cmbc;

import org.apache.commons.lang.builder.ToStringBuilder;

import com.gopay.common.domain.bank.BaseMessage;
import com.thoughtworks.xstream.annotations.XStreamAlias;

/**
 * 微信公众号民生渠道报文交互对象
 *
 * @author 宣广海
 *
 * @version 
 *
 * @since 2017年5月12日
 */
@XStreamAlias("merchant")
public class TransMsg <T> extends BaseMessage{
	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 8316954635404466947L;
	/**
	 * 报文头对象
	 */
	@XStreamAlias("head")
	private MsgHead msgHead;	
	/**
	 * 报文体对象
	 */
	@XStreamAlias("body")
	private T msgBody;

	public MsgHead getMsgHead() {
		return msgHead;
	}

	public void setMsgHead(MsgHead msgHead) {
		this.msgHead = msgHead;
	}

	public T getMsgBody() {
		return msgBody;
	}

	public void setMsgBody(T msgBody) {
		this.msgBody = msgBody;
	}
	@Override
    public String toString(){
		return "Head : "+ToStringBuilder.reflectionToString(msgHead) 
		+ "Body : " + ToStringBuilder.reflectionToString(msgBody);
	}
}
